﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Extjs_ReGSharp.Criteria
{
	internal class StartsWithCriteria<T> : BaseCriteria<T, string>
	{
		public StartsWithCriteria(string field, string value)
			: base(field, value)
		{

		}

		protected override bool IsValid(string instanceValue)
		{
			return instanceValue.StartsWith(CriteriaValue, StringComparison.OrdinalIgnoreCase);
		}
	}
}
